clear
use "G:\My Drive\APSA_Rule_of_law\Data\Merging Data\data_0920.dta"

tab date_policy if MaskPolicies==.

tab date if grocery_and_pharmacy_percent_cha==.

encode country, generate(ctry)
generate Date2 = date(date,"YMD")
format %td Date2

tsset ctry Date2, daily

gen polity_cat="autocracy" if polity2<=-6
replace polity_cat="anocracy" if polity2>=-5&polity2<=5
replace polity_cat="democracy" if polity2>=6
replace polity_cat="" if polity2==.
gen female_leader=0
replace female_leader=1 if v2exfemhos==1
replace female_leader=1 if v2exfemhog==1

gen medical_cap=doctors_perth+nurses_perth+hospbedsperth
gen coercive_cap=policecap+milpercap
 
sum BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing Capacity infcap_pca ape1 medical_cap govhealthexp_pcGDP v2x_pubcorr coercive_cap transit_stations_percent_change_ workplaces_percent_change_from_b residential_percent_change_from_ pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader cases deaths recoveries



gen ldeaths=log(deaths)
gen lrecoveries=log(recoveries)
gen lcases=log(cases)


collapse (mean) Capacity coercive_cap infcap_pca govhealthexp_pcGDP BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback ape1 polity2 female_leader medical_cap v2x_pubcorr gini_disp (sum) lcases ldeaths lrecoveries , by(country)

label var lcases "COVID cases"
label var ldeaths "COVID deaths"
label var lrecoveries "COVID recoveries"
label var panback "Pandemic backsliding"
label var Capacity "State capacity"
label var infcap_pca "Information Capacity"
label var ape1 "Political Extraction Capacity"
label var medical_cap "Health Capacity"
label var govhealthexp_pcGDP "Gov Health Exp (\% GDP)"
label var v2x_pubcorr "Bureaucratic Corruption"
label var coercive_cap "Coercive capacity"
label var pop_density "Population density"
label var GDPpcap "GDP per capita"
label var FDI_pcGDP "FDI (\% GDP)"
label var Trade_pcGDP "Trade (\% GDP)"
label var polity2 "Polity score"
label var female_leader "Female leader"
label var gini_disp "GINI"
label var lcases "COVID cases"
label var ldeaths "COVID deaths"
label var lrecoveries "COVID recoveries"


reg lcases Capacity BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback polity2 female_leader
gen e = e(sample)
drop if e == 0

	
reg lcases c.Capacity##c.panback BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader , ro 
eststo m1


reg lcases c.coercive_cap##c.panback BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader, ro 
eststo m3

reg lcases c.infcap_pca##c.panback BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback polity2 female_leader , ro 
eststo m4


reg lcases c.govhealthexp_pcGDP##c.panback BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader, ro 
eststo m5

esttab m1 m3 m4 m5 using "cases_VDem.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 


	
reg ldeaths c.Capacity##c.panback BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader , ro 
eststo m1


reg ldeaths c.coercive_cap##c.panback BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader, ro 
eststo m3

reg ldeaths c.infcap_pca##c.panback BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader , ro 
eststo m4

reg ldeaths c.govhealthexp_pcGDP##c.panback BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader , ro 
eststo m5

esttab m1 m3 m4 m5 using "deaths_VDem.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 


reg BusinessRestrictions c.Capacity##c.panback pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m1


reg BusinessRestrictions c.coercive_cap##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m3

reg BusinessRestrictions c.infcap_pca##c.panback pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m4


reg BusinessRestrictions c.govhealthexp_pcGDP##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m5

esttab m1 m3 m4 m5 using "business_restrict_VDem.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)" "(7)" "(8)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 


reg HealthMonitoring c.Capacity##c.panback pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m1


reg HealthMonitoring c.coercive_cap##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m3

reg HealthMonitoring c.infcap_pca##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m4

reg HealthMonitoring c.govhealthexp_pcGDP##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m5

esttab m1 m3 m4 m5 using "health_monitor_VDem.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)" "(7)" "(8)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 



reg HealthResources c.Capacity##c.panback pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m1

reg HealthResources c.coercive_cap##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m3

reg HealthResources c.infcap_pca##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m4

reg HealthResources c.govhealthexp_pcGDP##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m5

esttab m1 m3 m4 m5 using "health_resources_VDem.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 	
	
	 
*MaskPolicies 
reg MaskPolicies c.Capacity##c.panback pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m1

reg MaskPolicies c.coercive_cap##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m3

reg MaskPolicies c.infcap_pca##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m4

reg MaskPolicies c.govhealthexp_pcGDP##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m5

esttab m1 m3 m4 m5 using "mask_policies_VDem.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 	
	 
	 
*SchoolRestrictions 
reg SchoolRestrictions c.Capacity##c.panback pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m1

reg SchoolRestrictions c.coercive_cap##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m3

reg SchoolRestrictions c.infcap_pca##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m4

reg SchoolRestrictions c.govhealthexp_pcGDP##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m5

esttab m1 m3 m4 m5 using "school_restrictions_VDem.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 
	 
*SocialDistancing
reg SocialDistancing c.Capacity##c.panback pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m1

reg SocialDistancing c.coercive_cap##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m3

reg SocialDistancing c.infcap_pca##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m4

reg SocialDistancing c.govhealthexp_pcGDP##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m5

esttab m1 m3 m4 m5 using "social_distancing_VDem.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 
	
	
clear 
use "G:\My Drive\APSA_Rule_of_law\Data\Merging Data\data_0921_CountryCross.dta"



gen polity_cat="autocracy" if polity2<=-6
replace polity_cat="anocracy" if polity2>=-5&polity2<=5
replace polity_cat="democracy" if polity2>=6
replace polity_cat="" if polity2==.
gen female_leader=0
replace female_leader=1 if v2exfemhos==1
replace female_leader=1 if v2exfemhog==1

gen medical_cap=doctors_perth+nurses_perth+hospbedsperth
gen coercive_cap=policecap+milpercap
 
label var BusinessRestrictions "Business Restrictions"
label var HealthMonitoring "Health Monitoring"
label var HealthResources "Health Resources"
label var MaskPolicies "Mask Policies"
label var SchoolRestrictions "School Restrictions"
label var SocialDistancing "Social Distancing"
 
sum BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing Capacity infcap_pca ape1 medical_cap govhealthexp_pcGDP v2x_pubcorr coercive_cap transit_stations_percent_change_ workplaces_percent_change_from_b residential_percent_change_from_ pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader cases deaths recoveries

label var Capacity "State capacity"
label var infcap_pca "Information Capacity"
label var ape1 "Political Extraction Capacity"
label var medical_cap "Health Capacity"
label var govhealthexp_pcGDP "Gov Health Exp (\% GDP)"
label var v2x_pubcorr "Bureaucratic Corruption"
label var coercive_cap "Coercive capacity"
label var retail_and_recreation_percent_ch "Retail mobility"
label var grocery_and_pharmacy_percent_cha "Grocery mobility"
label var parks_percent_change_from_baseli "Park mobility"
label var transit_stations_percent_change_ "Transit mobility"
label var workplaces_percent_change_from_b "Workplace mobility"
label var residential_percent_change_from_ "Residential mobility"
label var pop_density "Population density"
label var GDPpcap "GDP per capita"
label var FDI_pcGDP "FDI (\% GDP)"
label var Trade_pcGDP "Trade (\% GDP)"
label var polity2 "Polity score"
label var female_leader "Female leader"
label var gini_disp "GINI"
label var cases "COVID cases"
label var deaths "COVID deaths"
label var recoveries "COVID recoveries"

gen ldeaths=log(deaths)
gen lrecoveries=log(recoveries)
gen lcases=log(cases)
label var lcases "COVID cases"
label var ldeaths "COVID deaths"
label var lrecoveries "COVID recoveries"
label var panback "Pandemic backsliding"


	
reg lcases c.Capacity##c.panback BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader , ro 
eststo m1


reg lcases c.coercive_cap##c.panback BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader, ro 
eststo m3

reg lcases c.infcap_pca##c.panback BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback polity2 female_leader , ro 
eststo m4


reg lcases c.govhealthexp_pcGDP##c.panback BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader, ro 
eststo m5

esttab m1 m3 m4 m5 using "cases_VDem_early.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)") nonumber ///
	nonotes ///
 star(* 0.10 ** 0.05 *** .01) 


	
reg ldeaths c.Capacity##c.panback BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader , ro 
eststo m1


reg ldeaths c.coercive_cap##c.panback BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader, ro 
eststo m3

reg ldeaths c.infcap_pca##c.panback BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader , ro 
eststo m4

reg ldeaths c.govhealthexp_pcGDP##c.panback BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader , ro 
eststo m5

esttab m1 m3 m4 m5 using "deaths_VDem_early.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 


reg BusinessRestrictions c.Capacity##c.panback pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m1


reg BusinessRestrictions c.coercive_cap##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m3

reg BusinessRestrictions c.infcap_pca##c.panback pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m4


reg BusinessRestrictions c.govhealthexp_pcGDP##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m5

esttab m1 m3 m4 m5 using "business_restrict_VDem_early.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)" "(7)" "(8)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 


reg HealthMonitoring c.Capacity##c.panback pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m1


reg HealthMonitoring c.coercive_cap##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m3

reg HealthMonitoring c.infcap_pca##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m4

reg HealthMonitoring c.govhealthexp_pcGDP##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m5

esttab m1 m3 m4 m5 using "health_monitor_VDem_early.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)" "(7)" "(8)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 



reg HealthResources c.Capacity##c.panback pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m1

reg HealthResources c.coercive_cap##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m3

reg HealthResources c.infcap_pca##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m4

reg HealthResources c.govhealthexp_pcGDP##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m5

esttab m1 m3 m4 m5 using "health_resources_VDem_early.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 	
	
	 
*MaskPolicies 
reg MaskPolicies c.Capacity##c.panback pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m1

reg MaskPolicies c.coercive_cap##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m3

reg MaskPolicies c.infcap_pca##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m4

reg MaskPolicies c.govhealthexp_pcGDP##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m5

esttab m1 m3 m4 m5 using "mask_policies_VDem_early.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 	
	 
	 
*SchoolRestrictions 
reg SchoolRestrictions c.Capacity##c.panback pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m1

reg SchoolRestrictions c.coercive_cap##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m3

reg SchoolRestrictions c.infcap_pca##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m4

reg SchoolRestrictions c.govhealthexp_pcGDP##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m5

esttab m1 m3 m4 m5 using "school_restrictions_VDem_early.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 
	 
*SocialDistancing
reg SocialDistancing c.Capacity##c.panback pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m1

reg SocialDistancing c.coercive_cap##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m3

reg SocialDistancing c.infcap_pca##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m4

reg SocialDistancing c.govhealthexp_pcGDP##c.panback  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 female_leader gini_disp lcases ldeaths , ro 
eststo m5

esttab m1 m3 m4 m5 using "social_distancing_VDem_early.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 
		